package com.diver.flinkdemo.enums;

/**
 * 消息类型
 * Created by wenjun on 2018/7/12.
 */
public enum MessageEnum {

    SOS(0, "紧急求助"),

    LONGSTAY(1, "长时间停留"),

    DEVIATIONTRAJECTORY(2, "偏离轨迹"),

    LEAVE_SECURITY_AREA(5, "离开安全区域"),

    BACKTO_SECURITY_AREA(6, "回到安全区域"),

    SYSTEMSETSUCCESS(3, "系统设置成功"),

    SYSTEMSETFAIL(4, "系统设置失败"),

    BLOOD_ERR(8 , "血压异常" ),
    HEAT_RATE_ERR(7, "心率异常"),
    TEMP_ERR(9, "心率异常"),

    LOW_ELECTRICITY(10, "低电提醒"),

    LEAVE_DANGER_AREA(11, "离开危险区域"),
    IN_DANGER_AREA(12, "进入危险区域"),

    PASS_GATE_IN(13, "通过闸机-进"),
    PASS_GATE_OUT(14, "通过闸机-出"),

    POWER_OFF(15, "设备关机"),

    INSTRUCTIONS_ISSUED_ERROR(16,"指令下发失败"),

    SMS_COLLECTION(17,"短信代收"),

    //上学守护
    LEAVE_HOME_AREA(18,"已经离开家"),

    NOT_LEAVE_HOME_AREA(19,"未离开家"),

    ARRIVE_SCHOOL_AREA(20,"已到校"),

    NOT_ARRIVE_SCHOOL_AREA(21,"未到校"),

    LEAVE_SCHOOL_AREA(22,"离校"),

//    NOT_LEAVE_SCHOOL_AREA(23,"未离校"),

    ARRIVE_HOME_AREA(24,"到家"),

    NOT_ARRIVE_HOME_AREA(25,"未到家"),

    DEV_IS_ONLINE(34,"设备不在线");


    private Integer type;
    private String desc;

    MessageEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
